function [] = evalCurrentDay (CON, tactNumber, tactsInDay)
    
    if (mod(tactNumber, tactsInDay) == 0)
    
        javaaddpath(CON.connectorPath);
        driver = 'com.mysql.jdbc.Driver';
        url = sprintf('jdbc:mysql://%s/%s', CON.host, CON.dbname);
        conn = database(CON.dbname, CON.user, CON.password, driver, url);

        if isconnection(conn)
            exec(conn,strcat('update ManufacturingInit SET CurrentDay = ', int2str(floor(tactNumber/tactsInDay)), '; ')); 
        end
        
    end
    
end